package builder.impl;

import builder.SudokuBuilder;
import entity.SudokuGrid;
import entity.impl.DefaultSudokuGridImpl;

/**
 * Created by kllso on 17-5-3.
 */
public class DefaultSudokuBuilderImpl implements SudokuBuilder {

    @Override
    public SudokuGrid build() {
        int[][] sudoku = new int[][]{
                {1, 2, 3, 4, 5, 6, 7, 8, 9},
                {4, 5, 6, 7, 8, 9, 1, 2, 3},
                {7, 8, 9, 1, 2, 3, 4, 5, 6},
                {2, 1, 4, 3, 6, 5, 8, 9, 7},
                {3, 6, 5, 8, 9, 7, 2, 1, 4},
                {8, 9, 7, 2, 1, 4, 3, 6, 5},
                {5, 3, 1, 6, 4, 2, 9, 7, 8},
                {6, 4, 2, 9, 7, 8, 5, 3, 1},
                {9, 7, 8, 5, 3, 1, 6, 4, 2}
        };
        return new DefaultSudokuGridImpl(sudoku);
    }
}
